//
// Copyright (C) 2011 Steve Channell steve.channell@cepheis.com
//
// This file is part of Cephei.QL, an open-source library wrapper 
// arround QuantLib http://quantlib.org/
//
// Cephei.QL is open source software: you can redistribute it and/or modify it
// under the terms of the license.  You should have received a
// copy of the license along with this program; if not, please email
// <support@cepheis.com>. The license is also available online at
// <http://cepheis.com/license.htm>.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE.  See the license for more details.
//
// Version 2.101
//#include "stdafx.h"
#include "CallableBondConstantVolatility.h"
using namespace Cephei::QL::Experimental::Callablebonds;
#include <gen/QL/Times/Calendar.h>
#include <gen/QL/Quote.h>
#include <gen/QL/Times/DayCounter.h>
#include <gen/QL/Times/Period.h>
#include <gen/QL/Termstructures/Volatility/SmileSection.h>
#include <gen/QL/Experimental/Callablebonds/CallableBondVolatilityStructure.h>
using namespace Cephei::QL::Times;
using namespace Cephei::QL;
using namespace Cephei::QL::Termstructures::Volatility;
#define HANDLE
#undef ABSTRACT
#undef STRUCT
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (UInt32 settlementDays, Cephei::QL::Times::ICalendar^ calendar, Cephei::QL::IQuote^ volatility, Cephei::QL::Times::IDayCounter^ dayCounter) : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
    CCalendar^ _Ccalendar;
    CQuote^ _Cvolatility;
    CDayCounter^ _CdayCounter;
    try
    {
#ifdef HANDLE
        _phCallableBondConstantVolatility = NULL;
#endif
        QuantLib::Natural _settlementDays = (QuantLib::Natural)ValueHelper::Convert (settlementDays);
        _Ccalendar = safe_cast<CCalendar^> (calendar);
        _Ccalendar->Lock();
        QuantLib::Calendar& _calendar = static_cast<QuantLib::Calendar&> (_Ccalendar->GetReference ()); 
        _Cvolatility = safe_cast<CQuote^> (volatility);
        _Cvolatility->Lock();
        Handle<QuantLib::Quote>& _volatility = static_cast<Handle<QuantLib::Quote>&> (_Cvolatility->GetHandle ()); 
        _CdayCounter = safe_cast<CDayCounter^> (dayCounter);
        _CdayCounter->Lock();
        QuantLib::DayCounter& _dayCounter = static_cast<QuantLib::DayCounter&> (_CdayCounter->GetReference ()); 
        _ppCallableBondConstantVolatility = new boost::shared_ptr<QuantLib::CallableBondConstantVolatility> (new QuantLib::CallableBondConstantVolatility ( _settlementDays,  _calendar,  _volatility,  _dayCounter ));
        SetCallableBondVolatilityStructure (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
        if (_Ccalendar != nullptr) _Ccalendar->Unlock();
        if (_Cvolatility != nullptr) _Cvolatility->Unlock();
        if (_CdayCounter != nullptr) _CdayCounter->Unlock();
    }
}
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (UInt32 settlementDays, Cephei::QL::Times::ICalendar^ calendar, Double volatility, Cephei::QL::Times::IDayCounter^ dayCounter) : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
    CCalendar^ _Ccalendar;
    CDayCounter^ _CdayCounter;
    try
    {
#ifdef HANDLE
        _phCallableBondConstantVolatility = NULL;
#endif
        QuantLib::Natural _settlementDays = (QuantLib::Natural)ValueHelper::Convert (settlementDays);
        _Ccalendar = safe_cast<CCalendar^> (calendar);
        _Ccalendar->Lock();
        QuantLib::Calendar& _calendar = static_cast<QuantLib::Calendar&> (_Ccalendar->GetReference ()); 
        QuantLib::Volatility _volatility = (QuantLib::Volatility)ValueHelper::Convert (volatility);
        _CdayCounter = safe_cast<CDayCounter^> (dayCounter);
        _CdayCounter->Lock();
        QuantLib::DayCounter& _dayCounter = static_cast<QuantLib::DayCounter&> (_CdayCounter->GetReference ()); 
        _ppCallableBondConstantVolatility = new boost::shared_ptr<QuantLib::CallableBondConstantVolatility> (new QuantLib::CallableBondConstantVolatility ( _settlementDays,  _calendar,  _volatility,  _dayCounter ));
        SetCallableBondVolatilityStructure (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
        if (_Ccalendar != nullptr) _Ccalendar->Unlock();
        if (_CdayCounter != nullptr) _CdayCounter->Unlock();
    }
}
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (DateTime referenceDate, Cephei::QL::IQuote^ volatility, Cephei::QL::Times::IDayCounter^ dayCounter) : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
    CQuote^ _Cvolatility;
    CDayCounter^ _CdayCounter;
    try
    {
#ifdef HANDLE
        _phCallableBondConstantVolatility = NULL;
#endif
        QuantLib::Date _referenceDate = (QuantLib::Date)ValueHelper::Convert (referenceDate);
        _Cvolatility = safe_cast<CQuote^> (volatility);
        _Cvolatility->Lock();
        Handle<QuantLib::Quote>& _volatility = static_cast<Handle<QuantLib::Quote>&> (_Cvolatility->GetHandle ()); 
        _CdayCounter = safe_cast<CDayCounter^> (dayCounter);
        _CdayCounter->Lock();
        QuantLib::DayCounter& _dayCounter = static_cast<QuantLib::DayCounter&> (_CdayCounter->GetReference ()); 
        _ppCallableBondConstantVolatility = new boost::shared_ptr<QuantLib::CallableBondConstantVolatility> (new QuantLib::CallableBondConstantVolatility ( _referenceDate,  _volatility,  _dayCounter ));
        SetCallableBondVolatilityStructure (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
        if (_Cvolatility != nullptr) _Cvolatility->Unlock();
        if (_CdayCounter != nullptr) _CdayCounter->Unlock();
    }
}
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (DateTime referenceDate, Double volatility, Cephei::QL::Times::IDayCounter^ dayCounter) : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
    CDayCounter^ _CdayCounter;
    try
    {
#ifdef HANDLE
        _phCallableBondConstantVolatility = NULL;
#endif
        QuantLib::Date _referenceDate = (QuantLib::Date)ValueHelper::Convert (referenceDate);
        QuantLib::Volatility _volatility = (QuantLib::Volatility)ValueHelper::Convert (volatility);
        _CdayCounter = safe_cast<CDayCounter^> (dayCounter);
        _CdayCounter->Lock();
        QuantLib::DayCounter& _dayCounter = static_cast<QuantLib::DayCounter&> (_CdayCounter->GetReference ()); 
        _ppCallableBondConstantVolatility = new boost::shared_ptr<QuantLib::CallableBondConstantVolatility> (new QuantLib::CallableBondConstantVolatility ( _referenceDate,  _volatility,  _dayCounter ));
        SetCallableBondVolatilityStructure (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
        if (_CdayCounter != nullptr) _CdayCounter->Unlock();
    }
}
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (boost::shared_ptr<QuantLib::CallableBondConstantVolatility>& childNative, Object^ owner) : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
#ifdef HANDLE
	_phCallableBondConstantVolatility = NULL;
#endif
	_ppCallableBondConstantVolatility = &childNative;
    _ppCallableBondVolatilityStructure = new boost::shared_ptr<QuantLib::CallableBondVolatilityStructure> (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
}
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (QuantLib::CallableBondConstantVolatility& childNative, Object^ owner) : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
#ifdef HANDLE
	_phCallableBondConstantVolatility = NULL;
#endif
	_ppCallableBondConstantVolatility = new boost::shared_ptr<QuantLib::CallableBondConstantVolatility> (&childNative);
    _ppCallableBondVolatilityStructure = new boost::shared_ptr<QuantLib::CallableBondVolatilityStructure> (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
    _CallableBondConstantVolatilityOwner = owner;
    _CallableBondVolatilityStructureOwner = owner;
}

Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (CCallableBondConstantVolatility^ copy) : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
#ifdef HANDLE
	_phCallableBondConstantVolatility = NULL;
#endif
	if (copy->HasNative() != NULL)
    {
		_ppCallableBondConstantVolatility = new boost::shared_ptr<QuantLib::CallableBondConstantVolatility> (copy->GetShared());
        _ppCallableBondVolatilityStructure = new boost::shared_ptr<QuantLib::CallableBondVolatilityStructure> (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
    }
}
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (System::Type^ t) : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
#ifdef HANDLE
	_phCallableBondConstantVolatility = NULL;
#endif
	if (!t->IsSubclassOf(CCallableBondConstantVolatility::typeid))
		throw gcnew Exception ("Invalid base-case init");
}
#ifdef HANDLE
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (QuantLib::Handle<QuantLib::CallableBondConstantVolatility>& childNative, Object^ owner)  : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
	_phCallableBondConstantVolatility = &childNative;
	_ppCallableBondConstantVolatility = &static_cast<boost::shared_ptr<QuantLib::CallableBondConstantVolatility>>(childNative.currentLink());
    _ppCallableBondVolatilityStructure = new boost::shared_ptr<QuantLib::CallableBondVolatilityStructure> (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
    _CallableBondConstantVolatilityOwner = owner;
}
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (QuantLib::Handle<QuantLib::CallableBondConstantVolatility> childNative)  : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
	_phCallableBondConstantVolatility = &childNative;
	_ppCallableBondConstantVolatility = &static_cast<boost::shared_ptr<QuantLib::CallableBondConstantVolatility>>(childNative.currentLink());
    _ppCallableBondVolatilityStructure = new boost::shared_ptr<QuantLib::CallableBondVolatilityStructure> (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
}
#endif
#ifdef STRUCT
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::CCallableBondConstantVolatility (QuantLib::CallableBondConstantVolatility childNative)  : CCallableBondVolatilityStructure(CCallableBondConstantVolatility::typeid)
{
#ifdef HANDLE
	_phCallableBondConstantVolatility = NULL;
#endif
	_ppCallableBondConstantVolatility = new boost::shared_ptr<QuantLib::CallableBondConstantVolatility> (new QuantLib::CallableBondConstantVolatility (childNative));
    _ppCallableBondVolatilityStructure = new boost::shared_ptr<QuantLib::CallableBondVolatilityStructure> (boost::dynamic_pointer_cast<QuantLib::CallableBondVolatilityStructure> (*_ppCallableBondConstantVolatility));
}
#endif

Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::~CCallableBondConstantVolatility ()
{
    if (_ppCallableBondConstantVolatility != NULL)
    {
	    delete _ppCallableBondConstantVolatility;
        _ppCallableBondConstantVolatility = NULL;
    }
}
Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::!CCallableBondConstantVolatility ()
{
    if (_ppCallableBondConstantVolatility != NULL)
    {
	    delete _ppCallableBondConstantVolatility;
    }
}
QuantLib::CallableBondConstantVolatility& Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::GetReference ()
{
    if (_ppCallableBondConstantVolatility == NULL) throw gcnew NativeNullException ();
	return **_ppCallableBondConstantVolatility;
}
boost::shared_ptr<QuantLib::CallableBondConstantVolatility>& Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::GetShared ()
{
    if (_ppCallableBondConstantVolatility == NULL) throw gcnew NativeNullException ();
	return *_ppCallableBondConstantVolatility;
}
QuantLib::CallableBondConstantVolatility* Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::GetPointer ()
{
    if (_ppCallableBondConstantVolatility == NULL) throw gcnew NativeNullException ();
	return &**_ppCallableBondConstantVolatility;
}
#ifdef HANDLE
QuantLib::Handle<QuantLib::CallableBondConstantVolatility>& Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::GetHandle ()
{
	if (_phCallableBondConstantVolatility == NULL)
	{
		_phCallableBondConstantVolatility = new Handle<QuantLib::CallableBondConstantVolatility> (*_ppCallableBondConstantVolatility);
	}
	return *_phCallableBondConstantVolatility;
}
#endif
bool Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::HasNative () 
{
	return (_ppCallableBondConstantVolatility != NULL);
}

Cephei::QL::Times::IDayCounter^ Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::DayCounter::get ()
{
    try
    {
    	QuantLib::DayCounter _rv = (QuantLib::DayCounter)(*_ppCallableBondConstantVolatility)->dayCounter ( );   
        Cephei::QL::Times::CDayCounter^ _nrv = gcnew Cephei::QL::Times::CDayCounter (_rv);
    	return _nrv;
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
    }
}
Double Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::MaxBondLength::get ()
{
    try
    {
    	QuantLib::Time _rv = (QuantLib::Time)(*_ppCallableBondConstantVolatility)->maxBondLength ( );   
        Double _nrv = (Double)ValueHelper::Convert (_rv);
    	return _nrv;
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
    }
}
Cephei::QL::Times::IPeriod^ Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::MaxBondTenor::get ()
{
    try
    {
    	QuantLib::Period& _rv = (QuantLib::Period&)(*_ppCallableBondConstantVolatility)->maxBondTenor ( );   
        Cephei::QL::Times::CPeriod^ _nrv = gcnew Cephei::QL::Times::CPeriod (_rv, this);
    	return _nrv;
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
    }
}
DateTime Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::MaxDate::get ()
{
    try
    {
    	QuantLib::Date _rv = (QuantLib::Date)(*_ppCallableBondConstantVolatility)->maxDate ( );   
        DateTime _nrv = (DateTime)ValueHelper::Convert (_rv);
    	return _nrv;
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
    }
}
Double Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::MaxStrike::get ()
{
    try
    {
    	QuantLib::Real _rv = (QuantLib::Real)(*_ppCallableBondConstantVolatility)->maxStrike ( );   
        Double _nrv = (Double)ValueHelper::Convert (_rv);
    	return _nrv;
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
    }
}
Double Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility::MinStrike::get ()
{
    try
    {
    	QuantLib::Real _rv = (QuantLib::Real)(*_ppCallableBondConstantVolatility)->minStrike ( );   
        Double _nrv = (Double)ValueHelper::Convert (_rv);
    	return _nrv;
	}
    catch (QuantLib::Error& _error)
    {
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown quantlib error"));
        
    }
	catch (std::exception& _error)
	{
        if (_error.what())
		    throw gcnew NativeExcpetion (gcnew System::String(_error.what()));
        else
		    throw gcnew NativeExcpetion (gcnew System::String("Unknown std::exception"));
	}
    finally
    {
    }
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Factory class

Cephei::QL::Experimental::Callablebonds::ICallableBondConstantVolatility^ Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility_Factory::Create (UInt32 settlementDays, Cephei::QL::Times::ICalendar^ calendar, Cephei::QL::IQuote^ volatility, Cephei::QL::Times::IDayCounter^ dayCounter)
{
    return gcnew CCallableBondConstantVolatility ( settlementDays,  calendar,  volatility,  dayCounter);
}
Cephei::QL::Experimental::Callablebonds::ICallableBondConstantVolatility^ Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility_Factory::Create (UInt32 settlementDays, Cephei::QL::Times::ICalendar^ calendar, Double volatility, Cephei::QL::Times::IDayCounter^ dayCounter)
{
    return gcnew CCallableBondConstantVolatility ( settlementDays,  calendar,  volatility,  dayCounter);
}
Cephei::QL::Experimental::Callablebonds::ICallableBondConstantVolatility^ Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility_Factory::Create (DateTime referenceDate, Cephei::QL::IQuote^ volatility, Cephei::QL::Times::IDayCounter^ dayCounter)
{
    return gcnew CCallableBondConstantVolatility ( referenceDate,  volatility,  dayCounter);
}
Cephei::QL::Experimental::Callablebonds::ICallableBondConstantVolatility^ Cephei::QL::Experimental::Callablebonds::CCallableBondConstantVolatility_Factory::Create (DateTime referenceDate, Double volatility, Cephei::QL::Times::IDayCounter^ dayCounter)
{
    return gcnew CCallableBondConstantVolatility ( referenceDate,  volatility,  dayCounter);
}
